<!--
 * @FilePath     : /jquery/demo/101-3.html
 * @Description  : context 选项
 * @Date         : 2025-03-20 17:55
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-17 14:49:20
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
  </head>
  <body>
    <h2>jq 服务静态页</h2>

    <script src="/library/jquery.min.js"></script>
    <script src="/common/common.js"></script>
    <script>
      $.ajax({
        url: baseUrl.root + baseUrl.ajax + '/',
        type: 'GET',
        context: document.body,
        success: function (data) {
          // console.log(this)
          // 注释上面 context 查看下面 log
        },
      })
    </script>
  </body>
</html>
